package com.cdd.agent.api.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.cdd.common.domain.entity.AppSetup;
import com.cdd.agent.api.mapper.AppSetupMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author cdd
 * @date 2025-08-08 10:03
 */
@Service
public class AppSetupService {

    @Resource
    private AppSetupMapper appSetupMapper;

    public AppSetup get(){
        return appSetupMapper.selectOne(
                new LambdaQueryWrapper<AppSetup>()
                        .last("limit 1")
        );
    }
}
